foo(int n, int m, int *p)
{
    *p = n * m;
}